package com.yf.catcafe.mapper;

import com.yf.catcafe.pojo.enity.Booking;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BooksMapper {

    void insert(Booking booking);

    @Select("select * from tb_booking")
    List<Booking> query();

    @Delete("delete from tb_booking where id=#{id}")
    void delete(Long id);

    void seckillInsert(Booking booking);
}
